cmake_minimum_required(VERSION 3.16)
project(TaskManagerQt LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

find_package(Qt6 REQUIRED COMPONENTS Widgets Network Core)

qt_standard_project_setup()

add_executable(TaskManagerQt
    main.cpp
    taskmanagerapp.h
    taskmanagerapp.cpp
)

target_link_libraries(TaskManagerQt PRIVATE
    Qt6::Widgets
    Qt6::Network
    Qt6::Core
)

install(TARGETS TaskManagerQt
    RUNTIME DESTINATION bin) # Optional: for installation
